package graphics;

public abstract class Drawable {

	protected float x, y;
	
	public Drawable() {}
	
	public Drawable(float x, float y) {
		this.x = x; this.y = y;
	}
	
	public abstract void draw();
	
	public void moveTo(float x, float y) {
		this.x = x; this.y = y;
	}
	
	public void move(float dx, float dy) {
		x += dx;
		y += dy;
	}
	
	public float getX() {
		return x;
	}
	
	public float getY() {
		return y;
	}
	
}
